package com.test.vue.service;

import com.test.vue.entity.CheckUserDate;
import com.test.vue.entity.User;
import com.test.vue.utils.ReturnResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserService {

    //登录的接口
    ReturnResult regist(User user);
    //注册的接口
    ReturnResult login(String username, String password, HttpServletRequest request, HttpServletResponse response);
    //检查用户名是否被占用
    CheckUserDate checkUsername(String username);

}
